package org.ccahouse.ccatrain.service.impl;

import org.ccahouse.ccatrain.service.TrainService;
import org.springframework.stereotype.Service;

/**
 * 描述：
 *
 * @author kevin
 * @since 2020/7/6
 */

@Service
public class TrainServiceImpl implements TrainService {

    @Override
    public String sayHello(int i) {
        String result = "hello ";
        if (i == 1) {
            result = result + "kevin";
        } else if (i == 2) {
            result = result + "jack";
        } else {
            result = result + "world";
        }
        return result;
    }

    public static void main(String[] args) {


    }

    public static void changeI(String i) {
        i = "bbbb";
        System.out.println("inner " + i);
    }
}
